;
var helper = require("../../javascript/helper");
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
function genProductInfo() {
    plan = {
        planA: {
            "year": "18-65",
            "days": "1y",
            "people_count": "1",
            "accident_death": "100000",
            "accident_disable": "",
            "acute_death": "100000",
            "serious_medical": "",
            "price": "35.00"
        },
        planB:{
            "year": "18-65",
            "days": "1y",
            "people_count": "1",
            "accident_death": "200000",
            "accident_disable": "",
            "acute_death": "200000",
            "serious_medical": "",
            "price": "70.00"

        },
        planC:{
            "year": "18-65",
            "days": "1y",
            "people_count": "1",
            "accident_death": "200000",
            "accident_disable": "20000",
            "acute_death": "200000",
            "serious_medical": "5000",
            "price": "78.00"
        },
        planD:{
            "year": "18-65",
            "days": "1y",
            "people_count": "1",
            "accident_death": "300000",
            "accident_disable": "30000",
            "acute_death": "300000",
            "serious_medical": "15000",
            "price": "118.00"
        }
    }
    for( k in plan){
        data = plan[k]
        data.name = "奋斗无忧-白领意外险",
        data.company = "中国人民保险"
        mysql.insertData( data  );
        
    }
    mysql.close();


}
